home *** CD-ROM | disk | FTP | other *** search
- global ggridlist, glessonnumber, galllessonlist, theSparkle, gSpliteSetList, gNextPlay
-
- on mouseDown
- set chapternum to integer((getAt(clickLoc(), 1) - getAt(ggridlist, 7)) / getAt(ggridlist, 5))
- set lessonnum to integer((getAt(clickLoc(), 2) - getAt(ggridlist, 8)) / getAt(ggridlist, 5))
- if (lessonnum > 0) and (chapternum > 0) and (lessonnum <= glessonnumber) then
- if chapternum <= getAt(getAt(galllessonlist, lessonnum), 2) then
- sparkle(theSparkle, getAt(clickLoc(), 1), getAt(clickLoc(), 2))
- repeat with n in getAt(gSpliteSetList, 3)
- set the visible of sprite n to 0
- end repeat
- set gNextPlay to [lessonnum, chapternum, #pause]
- set the mouseDownScript to "playerMouseDownScript"
- go("PlayMode")
- else
- beep()
- end if
- else
- beep()
- end if
- end
-